<?php
html::printPath(array(
		'seminar.form-title' => 'admin/seminar/all',
		$seminar['name'] => '/admin/seminar/display?id=' . $seminar['id'],
		'seminarTranslation.form-title' => '/admin/seminarTranslation/listing?seminar_id=' . $seminar['id'],
		text::get('seminarTranslation.translationToLanguage', $language['name']) => ''
));
$msg->printMessages();

html::actionLists(array(
		'editLi' => html::anchor('admin/seminarTranslation/edit?seminar_id=' . $seminar['id'] . '&language_code=' . $seminarTranslation['language_code'], text::get('seminarTranslation-editThis'))
));

$fb = new FormBuilder('seminar', $seminarTranslation);
$fb->displayOnly();
$fb->text('name');
$fb->textarea('description');
$fb->write();

echo '<h3>' . text::getEscaped('seminarTranslation.seminarBatchNames') . '</h3>';

echo '<ul>';
foreach ($batchTypeList as $batchType) {
	echo '<li>' . $batchType['name'];
	echo '<table class="displayTable">';
	foreach ($batchType['batchList'] as $batch) {
		echo '<tr><th>' . format::dateInterval($batch['begin_date'], $batch['end_date']) . '</th><td>' . $batch['name'] . '</td></tr>';
	}
	echo '</table>';
	echo '</li>';
}
echo '</ul>';
